package com.xju.entity;

import java.util.Date;

public class Order {
    private int id;
    private int user_id;
    private Date order_date;
    private double total_price;
    private String status;

    public Order(int id, int user_id, Date order_date, double total_price, String status) {
        this.id = id;
        this.user_id = user_id;
        this.order_date = order_date;
        this.total_price = total_price;
        this.status = status;
    }

    public Order() {

    }

    // Getters and setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public Date getOrder_date() {
        return order_date;
    }

    public void setOrder_date(Date order_date) {
        this.order_date = order_date;
    }

    public double getTotal_price() {
        return total_price;
    }

    public void setTotal_price(double total_price) {
        this.total_price = total_price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
}
